package com.kws.system.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kws.system.domain.TbInvoice;
import com.kws.system.domain.info.QueryInvoiceManagementInfo;
import com.kws.system.domain.vo.QueryInvoiceManagementRq;
import com.kws.system.mapper.InvoiceManagementMapper;
import com.kws.system.service.InvoiceManagementService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 * <b>InvoiceManagementServiceImpl</b>
 *
 * @description: InvoiceManagementServiceImpl <br>
 * @date: 2024/11/19 17:42 <br>
 * @author: lhm <br>
 * @version: 1.0 <br>
 */

@Service
public class InvoiceManagementServiceImpl extends ServiceImpl<InvoiceManagementMapper, TbInvoice> implements InvoiceManagementService {
    private static final Logger logger = LoggerFactory.getLogger(InvoiceManagementServiceImpl.class);

    @Override
    public Page<QueryInvoiceManagementInfo> queryInvoiceManagementPage(QueryInvoiceManagementRq rq) {
        Page<QueryInvoiceManagementInfo> page = new Page<>(rq.getPageNum(), rq.getPageSize());
        Page<QueryInvoiceManagementInfo> pageInfo = baseMapper.queryInvoiceManagementPage(page,rq);
        return pageInfo;
    }
}
